package org.osll.tictactoe.transport;

public class DefaultOptions {

	private static DefaultOptions instance = null;
	
	private String host="127.0.0.1";
	private int tcpPort=7777;
	private int udpPort=7778;
	
	private DefaultOptions() {
	}
	
	public static DefaultOptions getInstance() {
		if(instance == null)
			instance = new DefaultOptions();
		return instance;
	}

	public void setHost(String host) {
		this.host = host;
	}

	public String getHost() {
		return host;
	}

	public void setTcpPort(int tcpPort) {
		this.tcpPort = tcpPort;
	}

	public int getTcpPort() {
		return tcpPort;
	}

	public void setUdpPort(int udpPort) {
		this.udpPort = udpPort;
	}

	public int getUdpPort() {
		return udpPort;
	}
	
}
